/**
 * Author: runlin.tang
 * Creation Time: 2016-06-29.
 * Description:
 */
define(['jquery','underscore','backbone','../../../common/js/lib/text!../../../tpl/indexList.tpl','../c/slider','../c/indexTab'],
    function ($,_,Backbone,indexList,slider,indexTab) {
    function indexV(datas){
        //商店名称
        $('.webApp-header-title').html(datas.data.shop.name);
        //焦点图
        slider(datas);
        //引入tag模板
        $('.ui-tab-content-block').html(_.template(indexList)({data:datas}));
        //触发相应的tag模板
        indexTab(datas);
    }

    return indexV;
});